antidote to (boredom)

Translations
противоядие от (скуки)
A good book can be an antidote to boredom.
Хорошая книга может быть противоядием от скуки.